<table>
   <tbody>
        <volist name="ulist" id="list">
          <tr data-id="{$list['ids']}">
            <td class="sign" axis="col6">
              <div style="width: 24px;"><i class="ico-check"></i></div>
            </td>
			
			
            <td align="center" axis="col0">
              <div style="width: 50px;">{$list.drawid}</div>
            </td>                
			
            <td align="center" axis="col0">
              <div style="text-align: center; width: 150px;">{$list.username}</div>
            </td> 
			
			<td align="center" axis="col0">
              <div style="text-align: center; width: 120px;"> {$list.rolename} </div>
            </td> 
			
			<td align="center" axis="col0">
              <div style="text-align: center; width: 120px;"> {$list.phone} </div>
            </td>
			
			<td align="center" axis="col0">
              <div style="text-align: center; width: 100px;"> {$list.sum} </div>
            </td>
			
       		<td align="center" axis="col0">
                <div style="text-align: center; width: 150px;">{$list['drawdate']|date='Y-m-d H:i',###}</div>
            </td> 
            
            <td align="center" axis="col0">
                <div style="text-align: center; width: 100px;">                    
                    <a class="btn red" onClick="withdrawfun('{$list.drawid}','{$list.sum}','{$list.username}',this)" data-url="{:U('Storebossinfo/withdrawfun')}"><i class="fa fa-trash-o"></i> 转账 </a>
                 </div>
            </td> 
            
            <td align="" class="" style="width: 100%;">
              <div>&nbsp;</div>
            </td>
          </tr>
        </volist>             
      </tbody>
    </table>
    <!--分页位置--> 
    {$page}
	<script>
        // 点击分页触发的事件
        $(".pagination  a").click(function(){
            cur_page = $(this).data('p');
            ajax_get_table('search-form2',cur_page);
        });
        
        
        function withdrawfun(drawid,nums,tname,obj){
        	console.log('drawid='+drawid+'nums='+nums+'tname='+tname);
			layer.confirm('您确定将 <span style="color:red;"> '+nums+'</span> 元转账给 <span style="color:red;"> '+tname+'</span> 吗?', {
    		  btn: ['确定','取消'] //按钮
    		}, function(){
    		    // 确定
   				$.ajax({
   					type : 'post',
   					url : $(obj).attr('data-url'),
   					data : {ids:drawid},
   					dataType : 'json',
   					success : function(data){
						layer.closeAll();
   						if(data.status==1){
                            layer.msg(data.msg, {icon: 1, time: 2000},function(){
                                location.href = '';
//                                $(obj).parent().parent().parent().remove();
                            });
   						}else{
   							layer.msg(data.msg, {icon: 2,time: 3000});
   						}
   					}
   				})
    		}, function(index){
    			layer.close(index);
    			return false;// 取消
    		}
    		);
		}
		
    </script>